package com.txm.model.hql;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * �� ����Ϣ�־û���
 *
 * @author Administrator
 */
public class Order implements Serializable {
    private Long id;// ����
    private Customer customer;// �ͻ�
    private Date tradeDate;// ��������
    private String status;// ����״̬
    private Double amount;// �������
    private Set<OrderItem> orderItems;// ������ϸ

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Date getTradeDate() {
        return tradeDate;
    }

    public void setTradeDate(Date tradeDate) {
        this.tradeDate = tradeDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Set<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(Set<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }

    public String toString() {
        return "��������:" + this.getId() + "    |    �ͻ�:"
                + this.getCustomer().getName() + "    |     ��������:"
                + this.getTradeDate() + "    |   ����״̬ :" + this.getStatus()
                + "    |   �������:" + this.getAmount();
    }

}
